/**
 * 
 */
package com.dd.keel.core.database.jta;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.dd.keel.core.common.utils.EtcConfig;

/**
 * XA Datasource 
 * 
 * @author lizheng
 * 
 */
public class StandardXADataSourceEx extends
		org.enhydra.jdbc.standard.StandardXADataSource {
	private static Logger logger = LoggerFactory.getLogger(StandardXADataSourceEx.class);
	
	// Default values
    //DEFAULT_EXPIRATION = 600000;    // 10 minutes
    //DEFAULT_SLEEPTIME = 300000;     // 5 minutes
    //DEFAULT_MINSIZE =  2;           // 2 objects
    //DEFAULT_MAXSIZE = 50;           // 50 objects
    //DEFAULT_DEADLOCKMAXWAIT = 300000;  // 5 minutes
    //DEFAULT_DEADLOCKRETRYWAIT = 10000; // 10 seconds
	/**
	 * 
	 */
	private static final long serialVersionUID = -915949546599165388L;

	/**
	 * 
	 */
	public StandardXADataSourceEx() {
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.enhydra.jdbc.standard.StandardXADataSource#setPassword(java.lang.
	 * String)
	 */
	@Override
	public void setPassword(String password) {
		super.setPassword(password);
	}
	
	@Override
	public void setUrl(String url)
	{
		if( url!=null && !"".equals(url) )
		{
			url = EtcConfig.filter(url);
		}
		super.setUrl(url);
	}
	
}
